package com.ljh.SimpleTradingSystem.mybatis.entity;

import lombok.Data;

@Data
public class Comment {
    private int id;             //评论id
    private int goodsId;        //商品id
    private String userName;    //发出评论的用户名
    private String text;        //评论内容
    private String commentTime; //评论时间

    public Comment() {
    }

    public Comment(int goodsId, String userName, String text, String commentTime) {
        this.goodsId = goodsId;
        this.userName = userName;
        this.text = text;
        this.commentTime = commentTime;
    }
}
